Bernoulli Substitution